package com.actionpals.collections
{
	public class UIntCollection implements ICollection
	{
		private var data:Array;
		
		public function UIntCollection()
		{
			data = new Array();
		}
		
		public function addElement( value:uint ):void
		{
			data.push( value );
		}
		
		/**
		 * Returns the iterator for the collection.
		 * 
		 * @return The iterator for the collection.
		 */
		public function iterator():IIterator
		{
			return new ArrayIterator( data );
		}
		
		/** 
		 * Clears the current collection.
		 */
		public function clear():void
		{
			data.length = 0;
		}
		
	}
}